package com.yueyang.uc.server.controller;

import com.yueyang.uc.server.model.User;
import com.yueyang.uc.server.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Stephen.Shi
 * @version v1
 * @summary
 * @Copyright (c) 2019, Lianjia Group All Rights Reserved.
 * @since 2020/1/27
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("/findById")
    public User findById(Long id) {
        return userService.findById(id);
    }
}
